package com.gz.moreaseManager.modules.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;



import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 产品尺码信息
 * </p>
 *
 * @author wike
 * @since 2019-02-27
 */
@Data
@Accessors(chain = true)
@TableName("product_size")
public class ProductSize extends Model<ProductSize> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 产品ID
     */
    @TableField("product_id")
    private Integer productId;

    /**
     * 尺码名称
     */
    private String name;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
